const express = require('express')
const commodityMethod = require('../method/commodity/commodity.js')
const commodityRouter = express.Router()

commodityRouter.post('/get_commodity_type', (req, res, next) => {
	commodityMethod.getCommodityType(req, res, next)
})

commodityRouter.post('/set_commodity_type', (req, res, next) => {
	commodityMethod.setCommodityType(req, res, next)
})

commodityRouter.post('/add_goods',(req,res,next) => {
	commodityMethod.addGoods(req,res,next)
})

commodityRouter.post('/delete_goods',(req,res,next) => {
	commodityMethod.deleteGoods(req,res,next)
})

commodityRouter.post('/get_goods_list',(req,res,next) => {
	commodityMethod.getGoodsList(req,res,next)
})

module.exports = commodityRouter
